import service from '@/utils/request'

// 算法保存
export const saveAlgorithm = (data: any) => {
    if (data.id) {
        return service({
            url: '/empi/empialgo/update',
            method: 'post',
            data
        })
    } else {
        return service({
            url: '/empi/empialgo/add',
            method: 'post',
            data
        })
    }
}